#include <QComboBox>
#include <QtserialPort/QserialPortInfo>

class comPortQComboBox : public QComboBox
{
	Q_OBJECT

public:
	comPortQComboBox(QWidget *parent) : QComboBox(parent)
	{
		const QList<QSerialPortInfo> infos = QSerialPortInfo::availablePorts();
		for (const QSerialPortInfo &info : infos)
		{
			addItem(info.portName());
		}
	};
	virtual void showPopup(void);

private:

};